import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

public class h_9 {
    public static void main(String[] args) throws Exception {
        File f= new File("countName.txt");
        int count=0;
       if(f.exists()){
           BufferedReader fs=new BufferedReader(new FileReader(f));
           count=Integer.parseInt(fs.readLine());
       }
        count++;
       if(count%2==0){
           System.out.println(getName("names.txt"));
       }else {
           System.out.print("张三-男-23");
       }
       BufferedWriter fo=new BufferedWriter(new FileWriter(f));
       fo.write(""+count);
       fo.close();
    }
    public static String getName(String file) throws Exception {
        ArrayList<String> list=new ArrayList();
        BufferedReader fr=new BufferedReader(new FileReader(file));
        String str=null;
        while((str=fr.readLine())!=null){
            list.add(str);
        }
        Collections.shuffle(list);
        fr.close();
        return list.get(0);
    }

}
